#include "mouse.h"
#include "kbd.h"
#include "cpu_instr.h"
#include "irq.h"

void mouse_init(void)
{
    outb(KBD_PORT_CMD, MOUSE_COM_ENABLE);
    outb(KBD_PORT_CMD, MOUSE_COM_SEND);
    outb(KBD_PORT_DATA, MOUSE_COM_ENABLE_REPORT);
}
void do_handler_mouse(exception_frame_t *frame)
{
    int status = inb(KBD_PORT_STAT);
    if (!(status & KBD_STAT_OUT_READY))
    {
        pic_send_eoi(IRQ12_MOUSE);
    }
    uint32_t raw_code = inb(KBD_PORT_DATA);
}